package com.bothin.experiment4.service;

import com.bothin.experiment4.dto.StatisticDTO;
import com.bothin.experiment4.dto.SumaryDTO;
import com.bothin.experiment4.service.base.IBaseService;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by bothin
 * At 2019/12/21 16:51
 * Description:
 */
public interface IStatisticService {
    //公司销售额的统计
    public SumaryDTO getTheSumAPeriodOfTime(String start, String end);
    public List<SumaryDTO> getTheSumEachYearOfCompany();
    public List<SumaryDTO> getTheSumEachMouthOfCompany(String year);
    public List<SumaryDTO> getTheSumEachWeekOfCompany(String year);

    //客户的统计
    public List<StatisticDTO> getAllCustomerStatistic(String start, String end, int limit);
    public List<StatisticDTO> getAllCustomerStatistic(int limit);
    public List<StatisticDTO> getAllCustomerStatistic();

    //销售人员的统计
    public List<StatisticDTO> getAllSalesmanSStatistic(String start, String end, int limit);
    public List<StatisticDTO> getAllSalesmanSStatistic(int limit);
    public List<StatisticDTO> getAllSalesmanSStatistic();
    public SumaryDTO getOneSalesmanSStatisticById(String start, String end, int id);
    public SumaryDTO getOneSalesmanSStatisticById(int id);
    public List<SumaryDTO> getTheSumEachYearOfSalesman(int id);
    public List<SumaryDTO> getTheSumEachMouthOfSalesman(String year,int id);

    //商品的统计
    public List<StatisticDTO> getAllProductSStatistic(String start, String end, int limit);
    public List<StatisticDTO> getAllProductSStatistic(int limit);
    public List<StatisticDTO> getAllProductSStatistic();
}
